class CreateEndarEventTimes < ActiveRecord::Migration
  def self.up
    create_table :endar_event_times do |t|
	
		t.column :event_id, :integer, :null => false
		t.column :date_begin, :datetime
		t.column :date_end, :datetime
		t.column :time_begin, :time
		t.column :time_end, :time
		t.column :count, :integer, :default => 0
		t.column :created_at, :timestamp
		t.column :updated_at, :timestamp
		
    end
  end

  def self.down
    drop_table :endar_event_times
  end
end
